import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react';
import postcssPresetEnv from 'postcss-preset-env';

export default defineConfig({
  envPrefix: 'VITE',
  server: {
    hmr: true,
    port: 5175,
    open: true,
    host: 'localhost'
  },
  css: {
    devSourcemap: true,
    modules: {
    },
    preprocessorOptions: {
      less: {
      }
    },
    postcss: {
      plugins: [ postcssPresetEnv() ]
    }
  },
  plugins: [react()],
})
